]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Close the current box pointer when clicking on the tray
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 16 Aug 2012 17:53:07 +0000 (13:53 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 20 Aug 2012 01:15:50 +0000 (21:15 -0400)
js/ui/messageTray.js

index 8b5286b003f9bb9dccad5a2f2c94df36ad8d3a26..fde083385a7a191a63ac2f9d801eaa83c47237b1 100644 (file)
@@ -1321,7 +1321,13 @@ const MessageTray = new Lang.Class({
         this._notification = null;
         this._notificationClickedId = 0;
 
-        this._summaryBin = new St.Bin({ x_align: St.Align.END });
+        this._summaryBin = new St.Bin({ x_align: St.Align.END,
+                                        reactive: true });
+        this._summaryBin.connect('button-release-event', Lang.bind(this, function(actor, event) {
+            this._setClickedSummaryItem(null);
+            this._updateState();
+            actor.grab_key_focus();
+        }));
         this.actor.add_actor(this._summaryBin);
         this._summary = new St.BoxLayout({ name: 'summary-mode',
                                            reactive: true,